<?php
namespace app\index\controller;
use think\facade\Db;
use think\facade\View;

class Adv{
    public function adv()
    {
    $sql=Db::table('ecm_banner')->select();
    View::assign('sql',$sql);

        return View();
    }
}